﻿using System.ComponentModel.DataAnnotations;

namespace Synthesize.BaseSet.ServiceInterface.Dtos.Authority.Post
{
    public class CreatePostInput
    {
        public CreatePostInput()
        {
            Remarks = string.Empty;
        }

        /// <summary>
        /// 角色名称
        /// </summary>
        [Required(ErrorMessage = "岗位名称不能为空！")]
        public string Name { get; set; }

        /// <summary>
        /// 岗位简码
        /// </summary>
        [Required(ErrorMessage = "岗位简码不能为空！")]
        public string BrevityCode { get; set; }

        /// <summary>
        /// 角色状态 true启用 false禁用
        /// </summary>
        [Required(ErrorMessage = "岗位状态不能为空！")]
        public bool Status { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Required(ErrorMessage = "排序不能为空！")]
        public decimal Sort { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
    }
}
